<?php

namespace app\common\validate;

use think\Validate;

class Terminal extends Validate
{
    /**
     * 定义验证规则
     * 格式：'字段名'	=>	['规则1','规则2'...]
     *
     * @var array
     */	
	protected $rule = [
	    'equipment_id'  => 'unique:Terminal',
	    'sim_id'   => 'unique:Terminal',
	    'cardcode' => 'unique:Terminal',
	];
    
    /**
     * 定义错误信息
     * 格式：'字段名.规则名'	=>	'错误信息'
     *
     * @var array
     */	
    protected $message = [
        'equipment_id.unique' => '设备号唯一',
        'sim_id.unique' => '卡序列号唯一',
        'cardcode.unique' => '卡号唯一',
    ];
}
